<template>
  <div class="user-box">
     <div class="user-header">
            <span class="iconfont text" @click="back">&#xe601;</span>
            <span class="text2">我的</span>
            <span class="iconfont text">&#xe62b;</span>
    </div>
      <div class="user-info">
        <div class="info">
          <img src="https://s.yezgea02.com/1604040746310/aaaddd.png"/>
          <div class="user-desc">
            <span>昵称: 13064446107</span>
            <span>登录名：13064446107</span>
            <span class="name">个性签名: 123</span>
          </div>
        </div>
      </div>
    <ul class="user-list">
      <li class="van-hairline--bottom">
        <span>我的订单</span>
        <span class="iconfont blak">&#xe611;</span>
      </li>
      <li class="van-hairline--bottom" >
        <span>账号管理</span>
        <span class="iconfont">&#xe611;</span>
      </li>
      <li class="van-hairline--bottom">
        <span @click="golist">地址管理</span>
        <span class="iconfont">&#xe611;</span>
      </li>
      <li class="van-hairline--bottom">
        <span>关于我们</span>
        <span class="iconfont">&#xe611;</span>
      </li>
    </ul>
  </div>
</template>

<script>

export default {

  methods: {
    // 返回首页
    back () {
      this.$router.push('/')
    },
    golist () {
      this.$router.push('/Ress')
    }
  }

}
</script>

<style lang="less" scoped>
  .user-box {
    .user-header{
        width: 100%;
        height: 1rem;
        border-bottom: 1px solid #F7F8F8;
        line-height: 1.2rem;
        display: flex;
        text-align: center;
        .text{
            width: 10%;
        }
        .text2{
            width: 80%;
        }
    }
    .user-info{
      padding: 0.3rem 0.2rem 0.6rem 0.2rem;
      .info{
        height: 2.5rem;
        background: #1caeae;
        border-radius: 0.2rem;
        display: flex;
        img{
          width: 1.5rem;
          height: 1.5rem;
          border-radius: 50%;
          margin: auto 0.5rem;
        }
      }
      .user-desc{
        display: flex;
        flex-direction: column;
        margin: auto 0.2rem;
        line-height: 0.6rem;
        font-size: 18px;
        color: azure;
      }
    }
    .user-list{
      padding: 0 0.2rem;
      display: flex;
      flex-direction: column;
      li{
        height: 0.9rem;
        border-bottom:1px solid #f7f8f9;
        line-height: 0.9rem;
        display: flex;
        justify-content: space-between;
      }
    }
  }
</style>
